using UnityEngine;

[CreateAssetMenu(fileName = "Item", menuName = "Scriptable Object/ItemData")]
public class ItemData : ScriptableObject
{
    public enum ItemType { Melee, Range, Glove, Shoe, Heal } // 物品类型枚举

    [Header("物品类型")]
    public ItemType itemType;
    [Header("物品ID")]
    public int itemId;
    [Header("物品名称")]
    public string itemName;
    [Header("物品描述"), TextArea]
    public string itemDesc;
    [Header("物品图标")]
    public Sprite itemIcon;

    [Header("基础伤害")]
    public float baseDamage;
    [Header("基础数量")]
    public int baseCount;
    [Header("不同等级的伤害数组")]
    public float[] damages;
    [Header("不同等级的数量数组")]
    public int[] counts;

    [Header("投射物对象")]
    public GameObject projectile;
    public Sprite hand;
}